package com.itheima.ws.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

/**
 * 系统消息实体
 */
@Data
public class Result {
    private boolean is_system;
    private String fromName;
    private String message;
    private String toName;

    public String getToName() {
        return toName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public Result(boolean is_system, String fromName, String message, String toName) {
        this.is_system = is_system;
        this.fromName = fromName;
        this.message = message;
        this.toName = toName;
    }

    public boolean isIs_system() {
        return is_system;
    }

    public void setIs_system(boolean is_system) {
        this.is_system = is_system;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Result() {
    }

    public Result(boolean is_system, String fromName, String message) {
        this.is_system = is_system;
        this.fromName = fromName;
        this.message = message;
    }
}
